using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Watcher
{
    class Program
    {
        static void Main(string[] args)
        {
            Environment.CurrentDirectory = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            Watcher watcher = new Watcher();
            while(true)
            {
                Thread.Sleep(1000 * 90);
                //Thread.Sleep(120);
                string fileName = string.Format("{0}.jpeg", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss"));
                watcher.SendMail(fileName);
            }
        }
    }
}
